package com.example.androidkt.first;

public class Singleton {
    private static Singleton instance;

    Singleton(){}

    public synchronized static Singleton getInstance() {
        if (instance == null){
            instance = new Singleton();
        }
        return instance;
    }
}
